import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Order',
    name: 'Order',
    component: () => import('../views/Order.vue')
  },  {
    path: '/Money',
    name: 'Money',
    component: () => import('../views/Money.vue')
  },  {
    path: '/Shop',
    name: 'Shop',
    component: () => import('../views/Shop.vue')
  },  {
    path: '/Users',
    name: 'Users',
    component: () => import('../views/Users.vue')
  },{
    path: '/Detail/:id',
    name: 'Detail',
    component: () => import('../views/Detail.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
